<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="../css/bootstrap.min.css">
    <script src="../js/angular.min.js"></script>
</head>
<body>
<h3>Users</h3>

<table class="table table-striped table-hover table-bordered">
    <thead>
    <tr>
        <th>编号</th>
        <th>姓名</th>
        <th>地址</th>
    </tr>
    </thead>
    <tbody>
    <tr ng-repeat="user in users">
        <td>
            <button type="button" class="btn" ng-click="editUser(user.id)">
                <span class="glyphicon glyphicon-envelope"></span>&nbsp;&nbsp;Edit
            </button>
        </td>
        <td>{{user.username}}</td>
        <td>{{user.address}}</td>
    </tr>
    </tbody>
</table>
</body>
</html>